home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / QuickTime VR / MacOS / QuickDraw™ 3D 1.0.6F4 SDK / Samples / SampleCode / Unsupported Libraries / QDUtils.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-05  |  1.4 KB  |  56 lines  |  [TEXT/MPS ]

  1. /******************************************************************************
  2.  **                                                                             **
  3.  **     Module:        QDUtils.h                                                 **
  4.  **                                                                          **
  5.  **                                                                          **
  6.  **     Purpose:     Header for Ugly C Contest entry                              **
  7.  **                                                                          **
  8.  **                                                                          **
  9.  **                                                                          **
  10.  **     Copyright (C) 1992-1994 Apple Computer, Inc.  All rights reserved.     **
  11.  **                                                                          **
  12.  **     Change Log:                                                             **
  13.  **     kmd        11/02/93    Removed references to PolygonNet primitive         **
  14.  **                                                                             **                                                                            
  15.  **     pjs        02/13/94    Placed macros controlling choice of Quickdraw     **
  16.  **                            or GX for windows here, rather than in spin.c     **
  17.  **                                                                             **                                                                            
  18.  *****************************************************************************/
  19. #ifndef QDUtils_h
  20. #define QDUtils_h
  21.  
  22. #include <Quickdraw.h>
  23. #include <QDOffscreen.h>
  24.  
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif  /* __cplusplus  */
  28.  
  29. WindowPtr QDWindow_New(
  30.     Str255                name,
  31.     unsigned long        x,
  32.     unsigned long        y,
  33.     unsigned long        xSize, 
  34.     unsigned long        ySize, 
  35.     unsigned long        depth,
  36.     TQ3Boolean            autoCenter);
  37.  
  38. GWorldPtr QDGWorld_New(
  39.     unsigned long        xSize, 
  40.     unsigned long        ySize, 
  41.     unsigned long        depth);
  42.  
  43. void QDSwapBuffer(
  44.     WindowPtr            qdWindow,
  45.     GWorldPtr            qdGWorld);
  46.     
  47. void QDClearBackground(
  48.     GWorldPtr    gWorld,
  49.     TQ3ColorRGB    bgColor);
  50.  
  51. #ifdef __cplusplus
  52. }
  53. #endif  /* __cplusplus  */
  54.  
  55. #endif /* QDUtils_h */
  56.